package com.examples.filedialog;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Shell;

public class FileDialogBasic {

  public static void main(String[] a) {
	Display d = Display.getDefault();
    Shell s = new Shell(d);
    
    FileDialog fd = new FileDialog(s, SWT.OPEN);
    fd.setText("Open");
    fd.setFilterPath("C:/");
    String[] filterExt = {"*.txt","*.doc", ".rtf", "*.*"};
    fd.setFilterExtensions(filterExt);

    fd.open();
   
  }
}

